package com.wyiot.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @author yly
 * @since 2022年03月28日
 */
@Getter
public enum TransportationEnum {
    Air(0, "飞机"),
    Bus(1, "汽车"),
    Train(2, "火车"),
    SpecialCar(3, "专车")
    ;
    @EnumValue
    private final Integer  code;
    @JsonValue
    private final String remark;

    TransportationEnum(Integer code,String remark) {
        this.code= code;
        this.remark=remark;
    }

}
